﻿<%@ Page Title="" Language="C#" MasterPageFile="Mantenimiento.master" AutoEventWireup="true" CodeFile="Empleados.aspx.cs" Inherits="Empleados" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style11
        {
            height: 30px;
        }
        .style12
        {
            height: 26px;
        }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function openCalendar() {
            var left = (screen.width / 2) - (235 / 2);
            var top = (screen.height / 2) - (235 / 2);
            mywindow = window.open('http://localhost:1055/Codigo/Calendar.aspx', 'popupCalendar', 'height=235, width=235,status= no, resizable= no, scrollbars=no, toolbar=no,menubar=no, top=' + top + ', left=' + left);
        }
    </script>
    <table style="width:100%;">
    <tr>
        <td style="width:140px;">
        </td>
        <td style="width:200px;">
        </td>
        <td style="width:100px;">
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Codigo:</label> 
        </td>
        <td>
            <asp:TextBox ID="txtCodigo" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnAgregar" runat="server" Text="Agregar" Width="80px" onclick="btnAgregar_Click" />
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Apellidos:</label>
        </td>
        <td>
            <asp:TextBox ID="txtApellidos" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnActualizar" runat="server" Text="Actualizar"  Width="80px" onclick="btnActualizar_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Nombres:</label>
        </td>
        <td>
            <asp:TextBox ID="txtNombres" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnEliminar" runat="server" Text="Eliminar" Width="80px" onclick="btnEliminar_Click" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Cargo:</label>
        </td>
        <td style="padding-left:3px;">
            <asp:DropDownList ID="ddlCargo" runat="server" Width="165px"></asp:DropDownList> </td>
        <td>
            <asp:Button ID="btnSalir" runat="server" Text="Salir" Width="80px" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style11">
            <label class="lbl">Area:</label>
        </td>
        <td style="padding-left:3px;">
            <asp:DropDownList ID="ddlArea" runat="server" Width="165px"></asp:DropDownList>
        </td>
        <td class="style11">
        </td>
        <td class="style11">
            </td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Telefono:</label>
        </td>
        <td>
            <asp:TextBox ID="txtTelefono" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style11">
            <label class="lbl">Fecha Nacimiento:</label>
        </td>
        <td class="style11">
            <asp:TextBox ID="txtFechaNacimiento" runat="server"></asp:TextBox>
            <asp:Button ToolTip="Seleccionar fecha" ID="btnDate" runat="server" Text="" OnClientClick="openCalendar()" 
                onclick="btnDate_Click" />
        </td>
        <td class="style11">
            </td>
        <td class="style11">
            </td>
    </tr>
    <tr>
        <td class="style12">
            <label class="lbl">Direccion:</label>
        </td>
        <td class="style12">
            <asp:TextBox ID="txtDireccion" runat="server"></asp:TextBox>
        </td>
        <td class="style12">
            </td>
        <td class="style12">
            </td>
    </tr>
    <tr>
        <td>
            <label class="lbl">DNI:</label>
        </td>
        <td>
            <asp:TextBox ID="txtDni" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <label class="lbl">Correo:</label>
        </td>
        <td>
            <asp:TextBox ID="txtCorreo" runat="server"></asp:TextBox>
        </td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="4">
            <asp:GridView ID="GridView1" runat="server" Width="100%" 
                onselectedindexchanged="GridView1_SelectedIndexChanged" 
                OnPageIndexChanging="GridView1_PageIndexChanging" AllowPaging="True" 
                PageSize="2" CssClass="GridViewStyle">
                <Columns>
                    <asp:CommandField ControlStyle-CssClass="seleccionar" SelectText="&gt;" ShowSelectButton="True" >
                        <ControlStyle CssClass="seleccionar"></ControlStyle>
                    </asp:CommandField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
                <PagerStyle  CssClass="PagerStyle"/>
                <RowStyle CssClass="RowStyle"/>
                <AlternatingRowStyle CssClass="AltRowStyle" />
                <SelectedRowStyle CssClass="SelectedRowStyle" />
                <EditRowStyle CssClass="EditRowStyle" />
                <EmptyDataTemplate> No hay empleados registrados
                </EmptyDataTemplate>
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td colspan="4">
            &nbsp;</td>
    </tr>
</table>
</asp:Content>

